package com.coderyeah.cosmetology.service.impl;

import com.coderyeah.cosmetology.entity.Business;
import com.coderyeah.cosmetology.mapper.BusinessMapper;
import com.coderyeah.cosmetology.service.BusinessService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.coderyeah.cosmetology.util.Result;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author lqs
 * @since 2022-05-24
 */
@Service
public class BusinessServiceImpl extends ServiceImpl<BusinessMapper, Business> implements BusinessService {
    @Resource
    private BusinessMapper businessMapper;

    @Override
    public Result getBusInfoByProId(String id) {
        Business business = businessMapper.getBusInfoByProId(id);
        return Result.success(business);
    }
}
